package cn.jiyun.dao.login;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Author 王晨
 * Date 2023/8/11  10:32
 */
@Data
@TableName(value = "login")
@EqualsAndHashCode(callSuper = false)
public class Login {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String logo;
    private Long number;
    private String sex;
    private String sign;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date joindate;
    private Integer status;
    private Integer rid;
    private Integer tid;
    private String password;
}
